import { defineStore } from 'pinia';
const useWebsocket = defineStore({
  id: 'Websocket',
  state: () => ({
    isConnected: false, //连接状态
  }),
  getters: {},
  actions: {
    setConnected(isConnected: boolean) {
      this.isConnected = isConnected
    }
  },
  // 开启数据缓存
  persist: true
});
export default useWebsocket;